//
//  main.m
//  单例
//
//  Created by qianfeng on 15/8/4.
//  Copyright (c) 2015年 qianfeng. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "YTDanLi.h"
#import "YTPerson.h"


int main(int argc, const char * argv[]) {
    @autoreleasepool {
        [YTPerson printDanli];
        
        YTDanLi * danli2 = [YTDanLi shareYTDanli];
//        YTDanLi * danli = [[YTDanLi alloc] init];
        NSLog(@"%p",danli2);
        YTDanLi * danli3 = [YTDanLi shareYTDanli];
        NSLog(@"%p",danli2);
         NSLog(@"%p",danli3);
        [danli3 setA:200];
        [danli3 setB:500];
        NSLog(@"%d %f",[danli2 getA],[danli2 getB]);
    }
    return 0;
}
